package DatagramPlusPlus;


/**
 *
 * @author Rafael
 */


public class Ack extends DatagramPlusPlusPacket {

    public Ack(DatagramPlusPlusPacket packet)   {
        super(packet.getTipo());
        super.setFlagAck(true);

        if(packet.getTipo().getTipo() == DatagramType.DATA) {
            long serial = packet.getNumSerie();
            super.setNumSerie(serial);
        }
    }
}
